package org.mspring.mlog;

import org.springframework.ui.Model;

/**
 * @author Gao Youbo
 * @since 2015-02-11 18:26
 */
public class BlogUtils {
    public static final String SITE_TITLE_KEY = "site_title";

    /**
     * 设置网页title
     *
     * @param title
     * @param model
     */
    public static void setSiteTitle(String title, Model model) {
        model.addAttribute(SITE_TITLE_KEY, title);
    }
}
